-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added tests #15
Added tests #15
Conversation
end | ||
|
||
test "Tensor Functionalities Test" do | ||
dims = Tensorflex.create_matrix(1,3,[[1,1,3]]) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Prefer to pattern match here. For example: {:ok, dims} = ...
. We rarely use elem
in Elixir code.
use ExUnit.Case | ||
doctest Tensorflex | ||
|
||
test "Matrix Functionalities Test" do |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is generally bad practice to have such large tests. Instead you want to do this:
describe "matrix functionalities" do
test "creates matrixes" do
...
end
test "can get size of matrix" do
...
end
...
end
|
||
|
||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are a bunch of unnecessary extra new lines here. :)
Noted @josevalim! I will be sure to fix these issues in the next PR :) |
No description provided.